package sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sys.dao.StatisticsDao;
import sys.entity.Statistics;
import sys.service.StatisticsService;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.util.List;
import java.util.UUID;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsDao statisticsDao;

    @Override
    public List<Statistics> findTeaByMaxStu() {
        boolean flag = false;
        return statisticsDao.findTeaByMaxStu();
    }

    @Override
    public List<Statistics> findTeaByCountStu() {
        return statisticsDao.findTeaByCountStu();
    }

    @Override
    public List<Statistics> findStuByMaxScore() {
        return statisticsDao.findStuByMaxScore();
    }

    @Override
    public List<Statistics> findStuBySumScore() {
        return statisticsDao.findStuBySumScore();
    }

    @Override
    public List<Statistics> findStuScoreCourseByMaxCourse() {
        return statisticsDao.findStuScoreCourseByMaxCourse();
    }
}
